﻿using System;
using Assist;
using Autodesk.Revit.DB;

namespace HYPretreatmentModeling
{
	public class LevelsDataSource
	{
		public bool IsEqual(LevelsDataSource ldc2)
		{
			return this.Name.CompareTo(ldc2.Name) == 0 && GeoUtil.IsEqual(this.Elevation, ldc2.Elevation) && this.LevelIDValue == ldc2.LevelIDValue && GeoUtil.IsEqual(this.LevelHeight, ldc2.LevelHeight) && this.Type.CompareTo(ldc2.Type) == 0 && (!(this.LevelTypeId != null) || !(ldc2.LevelTypeId != null) || this.LevelTypeId.IntegerValue == ldc2.LevelTypeId.IntegerValue);
		}

		public string Name
		{
			get
			{
				return this.m_levelName;
			}
			set
			{
				this.m_levelName = value;
			}
		}

		public double Elevation
		{
			get
			{
				return this.m_levelElevation;
			}
			set
			{
				this.m_levelElevation = value;
			}
		}

		public int LevelIDValue
		{
			get
			{
				return this.m_levelIDValue;
			}
			set
			{
				this.m_levelIDValue = value;
			}
		}

		public double LevelHeight
		{
			get
			{
				return this.m_levelHeight;
			}
			set
			{
				this.m_levelHeight = value;
			}
		}

		public string Type
		{
			get
			{
				return this.m_levelType;
			}
			set
			{
				this.m_levelType = value;
			}
		}

		public ElementId LevelTypeId
		{
			get
			{
				return this.m_levelTypeId;
			}
			set
			{
				this.m_levelTypeId = value;
			}
		}

		private string m_levelName;

		private double m_levelElevation;

		private int m_levelIDValue;

		private double m_levelHeight;

		private string m_levelType;

		private ElementId m_levelTypeId;
	}
}
